home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
002
/
npad.arc
/
NPAD.DOC
< prev
Wrap
Text File
|
1987-01-29
|
4KB
|
77 lines
NPAD (Notepad) Steven Holzner
Command
Purpose: Creates an on-screen window in which to keep
notes while working in other programs.
Format: NPAD (loads memory-resident program)
<Ctrl-N> (toggles notepad on/off)
Remarks: The NPAD notepad holds 10 lines of 25
characters each. The window is toggled on
and off in the upper right corner of the
screen. Toggling the window off does not
eliminate its contents, but pressing the
Delete key while the window is on-screen
does. Single characters may be deleted with
the backspace, and the carriage return is
also recognized. No provision for storing
the contents of the notepad as a file are
available, however.
Option 1: NPAD.COM can be modified by using
DEBUG. The ASCII and scan codes for the
default trigger key (Ctrl-N) are 0Eh and 31h,
respectively, and are located at the offset
addresses xxxx:0336 and xxxx:0337. To change
these to use the reverse apostrophe (grave
accent), you would enter
DEBUG NPAD.COM
and
-E 336
DEBUG will respond with
xxxx:0336 0E.
and you simply type in the new ASCII code, in
this case, 60 (the hex value of decimal 96).
After entering E 337 and getting the response
xxxx:0337 31.
you type in the new scan code 29 (41 decimal)
for the grave accent. Other ASCII and scan
codes are given in the BASIC and in the DOS
Technical Reference manuals.
The two locations to examine and change for
the NPAD colors are 02FF and 0413, which have
a default value of 70h (112 decimal). On a
color monitor this produces a white (7)è background with black (0) characters. For
red letters on white you would change the 70h
to 74h (116 decimal) at these two locations.
The colors to which NPAD resets its portion
of the screen on exit are set by the value at
xxxx:0350h. The default value is 07 (white
characters on a black background). For white
letters on a dark blue background, change the
07 to 17h (23 decimal); for dark blue letters
on white, use 71h (113 decimal) at this location.
When you have made the changes you want, at
the DEBUG hyphen prompt enter W and then Q.
Notes:
1. NPAD is a memory-resident program that
must scan the keyboard interrupts. It
will conflict with applications programs
(e.g., XyWrite) that themselves
commandeer the keyboard interrupts.